From 7927bcf6c5268b0f84f522626ac6983d5e8826db Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 21 Jan 2020 23:19:24 -0500 Subject: [PATCH] container: Remove an unnecessary check GtkWindow implements GtkRoot, so we can avoid treating them separately. --- gtk/gtkcontainer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 3650f4ee97..9da5fb4c6e 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -371,9 +371,7 @@ gtk_container_idle_sizer (GdkFrameClock *clock, */ if (gtk_widget_needs_allocate (GTK_WIDGET (container))) { - if (GTK_IS_WINDOW (container)) - gtk_window_check_resize (GTK_WINDOW (container)); - else if (GTK_IS_ROOT (container)) + if (GTK_IS_ROOT (container)) gtk_native_check_resize (GTK_NATIVE (container)); else g_warning ("gtk_container_idle_sizer() called on a non-native non-window"); -- 2.30.2